import request from '@/utils/request'

// 查询录入客户信息列表
export function listCustomerInput(query) {
  return request({
    url: '/cooperate/customerInput/list',
    method: 'get',
    params: query
  })
}

// 查询录入客户信息详细
export function getCustomerInput(id) {
  return request({
    url: '/cooperate/customerInput/' + id,
    method: 'get'
  })
}

// 新增录入客户信息
export function addCustomerInput(data) {
  return request({
    url: '/cooperate/customerInput',
    method: 'post',
    data: data
  })
}

// 修改录入客户信息
export function updateCustomerInput(data) {
  return request({
    url: '/cooperate/customerInput',
    method: 'PUT',
    data: data
  })
}


// 删除录入客户信息
export function delCustomerInput(id) {
  return request({
    url: '/cooperate/customerInput/' + id,
    method: 'DELETE'
  })
}

// 新增录入客户信息标记
export function addCustomerInputLike(customerId) {
  return request({
    url: `/cooperate/customerInputLike/like/${customerId}`,
    method: 'post',
  })
}

// 删除录入客户信息标记
export function delCustomerInputLike(customerId) {
  return request({
    url: '/cooperate/customerInputLike/unlike/' + customerId,
    method: 'DELETE'
  })
}


// 查询录入客户信息反馈列表
export function listCustomerInputFeedback(query) {
  return request({
    url: '/cooperate/customerInputFeedback/list',
    method: 'get',
    params: query
  })
}

// 查询录入客户信息反馈详细
export function getCustomerInputFeedback(id) {
  return request({
    url: '/cooperate/customerInputFeedback/' + id,
    method: 'get'
  })
}

// 新增录入客户信息反馈
export function addCustomerInputFeedback(data) {
  return request({
    url: '/cooperate/customerInputFeedback',
    method: 'post',
    data: data
  })
}

// 修改录入客户信息反馈
export function updateCustomerInputFeedback(data) {
  return request({
    url: '/cooperate/customerInputFeedback',
    method: 'PUT',
    data: data
  })
}


// 删除录入客户信息反馈
export function delCustomerInputFeedback(id) {
  return request({
    url: '/cooperate/customerInputFeedback/' + id,
    method: 'DELETE'
  })
}
